/*
	File:		BitmapFont.h
	Course:		SGD 1204
	Author:		Sean A. James
	Purpose:	Handel the Bitmap Fonts
*/

#ifndef BITMAPFONT_H
#define BITMAPFONT_H

#include "SGD Wrappers/CSGD_TextureManager.h"

class CBitmapFont
{
private:
	// Cell Algorithm data
	int		m_nCharWidth;
	int		m_nCharHeight;
	int		m_nNumRows;
	int		m_nNumCols;

	CSGD_TextureManager* m_pTM;

	int		m_nNumChars;
	int		m_nImageID;
	char	m_cFirstChar;

	// SINGELTON:
	CBitmapFont(void);
	~CBitmapFont(void);
	CBitmapFont(const CBitmapFont&);
	CBitmapFont& operator=(const CBitmapFont&);

public:
	// SINGELTON:
	static CBitmapFont* GetInstance(void);

	void SetValues(int width, int height, int columns, int rows, char first, int file);

	RECT CellAlgorithm(int id);
	void Print(const char* szText, int nX, int nY, float fScale, DWORD dwColor);
};

#endif